package com.leejxx.admin.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leejxx.model.admin.dtos.AdChannel;
import com.leejxx.model.admin.dtos.ChannelDto;
import com.leejxx.model.admin.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author LeeJx
 * @ClassName AdChannelService
 * @Description TODO
 * @date 2021/2/4 14:28
 * @Version 1.0
 */
@Api(value = "频道管理", tags = "channel")
public interface AdChannelService extends IService<AdChannel> {
    /**
     * @Description: 根据名称分页查询频道列表
     * @Author: LeeJx
     * @Date: 2021/2/4 14:31
     * @Param: [dto]
     * @Return: com.leejxx.model.admin.dtos.ResponseResult
     */
    @ApiOperation("频道分页列表查询")
    ResponseResult findByNameAndPage(ChannelDto dto);

    @ApiOperation("频道添加")
    ResponseResult saveChannel(AdChannel adChannel);

    @ApiOperation("频道修改")
    ResponseResult updateChannel(AdChannel adChannel);

    @ApiOperation("频道删除")
    ResponseResult deleteChannelById(String id);
}
